package com.ruoyi.workflow.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 流程定义对象 bus_bpmn_info
 *
 * @author xiaowu
 * @date 2022-11-14
 */
@TableName("bus_bpmn_info")
public class BpmnInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private String resourceName;
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 流程名称
     */
    @Excel(name = "流程名称")
    private String bpmnLabel;

    /**
     * 流程类型
     */
    private String bpmnType;
    /**
     * 流程部署id
     */
    private String deploymentId;

    /**
     * 流程定义key
     */
    @Excel(name = "流程定义key")
    private String processDefinitionKey;

    /**
     * 部署时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "部署时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date deployTime;

    /**
     * 版本号
     */
    @Excel(name = "版本号")
    private Long version;

    /**
     * 描述信息
     */
    @Excel(name = "描述信息")
    private String info;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setBpmnLabel(String bpmnLabel) {
        this.bpmnLabel = bpmnLabel;
    }

    public String getBpmnLabel() {
        return bpmnLabel;
    }

    public void setBpmnType(String bpmnType) {
        this.bpmnType = bpmnType;
    }

    public String getBpmnType() {
        return bpmnType;
    }

    public void setProcessDefinitionKey(String processDefinitionKey) {
        this.processDefinitionKey = processDefinitionKey;
    }

    public String getProcessDefinitionKey() {
        return processDefinitionKey;
    }

    public void setDeployTime(Date deployTime) {
        this.deployTime = deployTime;
    }

    public Date getDeployTime() {
        return deployTime;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public Long getVersion() {
        return version;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getInfo() {
        return info;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public String getDeploymentId() {
        return deploymentId;
    }

    public void setDeploymentId(String deploymentId) {
        this.deploymentId = deploymentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("bpmnLabel", getBpmnLabel())
                .append("bpmnType", getBpmnType())
                .append("processDefinitionKey", getProcessDefinitionKey())
                .append("deployTime", getDeployTime())
                .append("version", getVersion())
                .append("info", getInfo())
                .toString();
    }
}
